<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3-判断某个数组是否包含给定的值includes</title>
</head>
<body>
    <script>
        var arr = [1,3,7,10];
        var ishas1 = arr.includes(1);
        console.log(ishas1);//true
        var ishas20 = arr.includes(20);
        console.log(ishas20);//false

        //判断某个jquery元素是否有某个类 hasClass('cur');
    </script>
</body>
</html>